home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / graphics / pbm / pbm_man.zoo / man1 / pgmtoppm.1 < prev    next >
Text File  |  1994-08-27  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. pgmtoppm(1)              USER COMMANDS                pgmtoppm(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      pgmtoppm - colorize a portable graymap into a portable  pix-
  10.      map
  11.  
  12. SYNOPSIS
  13.      pgmtoppm _✓c_✓o_✓l_✓o_✓r_✓s_✓p_✓e_✓c [_✓p_✓g_✓m_✓f_✓i_✓l_✓e]
  14.      pgmtoppm _✓c_✓o_✓l_✓o_✓r_✓s_✓p_✓e_✓c_✓1-_✓c_✓o_✓l_✓o_✓r_✓s_✓p_✓e_✓c_✓2 [_✓p_✓g_✓m_✓f_✓i_✓l_✓e]
  15.      pgmtoppm -map _✓m_✓a_✓p_✓f_✓i_✓l_✓e [_✓p_✓g_✓m_✓f_✓i_✓l_✓e]
  16.  
  17. DESCRIPTION
  18.      Reads a portable graymap as input.  Colorizes it  by  multi-
  19.      plying the the gray values by specified color or colors, and
  20.      produces a portable pixmap as output.
  21.  
  22.      If only one color is specified, black in the pgm file  stays
  23.      black  and  white  in  the pgm file turns into the specified
  24.      color in the ppm file.  If two colors (separated by a  dash)
  25.      are specified, then black gets mapped to the first color and
  26.      white gets mapped to the second.
  27.  
  28.      The colors can be specified in three ways.  One, as a  name,
  29.      assuming that a pointer to an X11-style color names file was
  30.      compiled in.  Two, as an X11-style hexidecimal number: #rgb,
  31.      #rrggbb,  #rrrgggbbb, or #rrrrggggbbbb.  Three, as a triplet
  32.      of decimal  floating  point  numbers  separated  by  commas:
  33.      r.r,g.g,b.b.
  34.  
  35.      Also, the -map flag lets you specify an entire  colormap  to
  36.      be  used.   The  mapfile  is  just a _✓p_✓p_✓m file; it can be any
  37.      shape, all that matters is the colors in it and their order.
  38.      In  this case, black gets mapped into the first color in the
  39.      map file, and white gets mapped to the last.
  40.  
  41. SEE ALSO
  42.      rgb3toppm(1), ppmtopgm(1), ppmtorgb3(1), ppm(5), pgm(5)
  43.  
  44. AUTHOR
  45.      Copyright (C) 1991 by Jef Poskanzer.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sun Release 4.0   Last change: 11 January 1991                  1
  64.  
  65.  
  66.  
  67.